<div class="panelBar">
	<ul class="toolBar">
		<li><a class="add" href="javascript:;" url="multiupload/multiupload.html?ext=所有文件(*.*)&count=5&size=314572KB&params={entity_id:{entity_id},attach_id:-1}" target="dialog" rel="multiupload" iframe="true" mask="true" width="400" height="300" callback="$this.parents('.panelBar').next().find('>table.list').removeAttr('loaded').jBinds()"><span>上传附件</span></a></li>
		<li><a class="delete" url="/attach/{attach_id}" area="tbody.list" callback="$this.parents('.panelBar').next().find('>table.list').removeAttr('loaded').jBinds()" type="delete" target="navTabTodo" title="确定要删除选中的数据吗？" warn="请选择需要删除的数据项！"><span>删除</span></a></li>
	</ul>
</div>
<div class="tableList">
	<table class="list" width="100%">
		<thead>
			<tr>
				<th width="25"><input type="checkbox" name="objectId" value="attach_id"/></th>
				<!-- 
				<th width="35">编号</th>
				 -->
				<th width="50">序号</th>
				<th width="35">小图</th>
				<th>名称</th>
				<th>描述</th>
				<th width="125">日期</th>
				<th width="80">操作</th>
			</tr>
		</thead>
		<tbody class="templet">
			<tr attach_id="${attach_id}" put="attach/${attach_id}">
				<td><input type="checkbox" name="attach_id" value="${attach_id}" /></td>
				<!-- 
				<td>${num}</td>
				 -->
				<td field="sequence" validator="required" title="${sequence}" align="center">${sequence}</td>
				<td>
					<img name="attach" src="images/jpg.gif" onerror="this.src='images/jpg.gif'" path="${file.small}" midpath="${file.middle}" oldpath="${file.origin}" height="21px" title="${name}"/>
				</td>
				<td field="name" validator="required" title="${name}" align="left">${name}</td>
				<td field="description" type="editor" title="${description}" align="left">${description}</td>
				<td title="${create_date}" align="center">${create_date}</td>
				<td align="center">
					<a url="/services/file/download/${file_id}"
						onclick="var $this=$(this);$this.attr('href',$this.attr('url'))" style="margin-right: 10px" title="下载"><img src="themes/default/images/form/download.gif"></a>
					<a url="entity/attach_update.html?attach_id=${attach_id}" callback="reload" target="dialog" width="350" height="250" titleable="false" title="修改附件信息"><img src="themes/default/images/form/update.gif"></a>
				</td>
			</tr>
		</tbody>
		<tbody class="list" action="{entity}/{entity_id}/attach">
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages"></div>
		<div class="pagination" totalCount="0" numPerPage="20" pageNumShown="10" currentPage="1"></div>
		<div class="clear"></div>
	</div>
</div>